﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true"
    CodeFile="SiteSachHay.aspx.cs" Inherits="SiteSachHay" %>

<%@ Register Assembly="PagerControl" Namespace="CutePager" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>Sách hay | <%=Common.home %></title>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <dx:BlogMod runat="server" ID="blog" />
    <dx:VideoMod runat="server" ID="video" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:HiddenField ID="H_PageCount" Value="0" runat="server" />
    <span class="path_chude">
        <asp:HyperLink ID="Hyperlink13" CssClass="icon_sub" runat="server" NavigateUrl="~/">Trang chủ</asp:HyperLink>
    </span><span class="path_chude">
        <asp:HyperLink ID="Hyperlink1" CssClass="icon_sub" runat="server" NavigateUrl="#">Album Sách Hay</asp:HyperLink></span>
    <div class="detail_content">
        <div class="detail_content_top">
        </div>
        <asp:UpdatePanel ID="UpdatePanel20" runat="server">
            <ContentTemplate>
                <div class="detail_content_mid">
                    <div class="detail_content_mid_content" style="padding-left: 20px; padding-right: 20px;">
                        <asp:DataList ID="dlSachHay" runat="server" OnItemDataBound="dlFromTrades_ItemDataBound"
                            RepeatColumns="1" RepeatDirection="Horizontal" Width="100%">
                            <ItemTemplate>
                                <asp:HiddenField ID="H_SachHayId" Value='<%# Eval("Id") %>' runat="server" />
                                <div class="new_small_right_SachHay">
                                    <table cellpadding="0" cellspacing="0" width="100%" border="0" class="new_small_SachHay">
                                        <tr>
                                            <td valign="top">
                                                <asp:HyperLink ID="HyperLink32" NavigateUrl='<%#"~/sachhay/" + Eval("Id") + "_" + GetTieuDe(Eval("TenSach")) + ".aspx"%>'
                                                    runat="server">
                                                    <asp:Image runat="server" ID="Image1" BorderWidth="1" Width="185" Height="250px"
                                                        CssClass="show_images" ImageUrl='<%# Common.sPathUpSachHay + Eval("AnhDaiDien") %>' />
                                                </asp:HyperLink>
                                            </td>
                                            <td style="padding-left: 10px">
                                                <table>
                                                    <tr>
                                                        <td colspan="2">
                                                            <span>
                                                                <asp:HyperLink CssClass="lienket_sach_hay" ID="HyperLink9" NavigateUrl='<%#"~/sachhay/" + Eval("Id") + "_" + GetTieuDe(Eval("TenSach")) + ".aspx"%>'
                                                                    runat="server"><%# Eval("TenSach") %></asp:HyperLink></span>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td width="50%">
                                                            Thể loại: <span class="Sachhay_bold">
                                                                <%# Eval("TheLoai") %></span>
                                                        </td>
                                                        <td width="40%">
                                                            Tác giả: <span class="Sachhay_bold">
                                                                <%# Eval("TacGia") %></span>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            Nhà xuất bản: <span class="Sachhay_bold">
                                                                <%# Eval("TenNhaXuatBan") %></span>
                                                        </td>
                                                        <td>
                                                            Số Trang: <span class="Sachhay_bold">
                                                                <%# Eval("SoTrang") %></span>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            Hình thức bìa: <span class="Sachhay_bold">
                                                                <%# Eval("HinhThucBia") %></span>
                                                        </td>
                                                        <td>
                                                            Kích thước: <span class="Sachhay_bold">
                                                                <%# Eval("KichThuoc") %></span>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            Ngày Đăng: <span class="Sachhay_bold">
                                                                <%# GetNgay(Eval("NgayCapNhat"))%></span>
                                                        </td>
                                                        <td>
                                                            Trọng Lượng: <span class="Sachhay_bold">
                                                                <%# Eval("TrongLuong") %></span>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="font-weight: bold" class="Sachhay_giabia">
                                                            Giá bìa:
                                                            <%# String.Format("{0:###,###,##0}",Eval("GiaBan")) %>VND
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" height="7px">
                                                            &nbsp
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <p class="new_small_content" style="text-align: justify">
                                                                <span style="color: #ea6d9b; font-style: italic">"<%# Eval("TomTat") %>"</span></p>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" height="7px">
                                                            &nbsp
                                                        </td>
                                                    </tr>                                                    
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </ItemTemplate>
                        </asp:DataList>
                    </div>
                    <div class="detail_content_bottom" style="text-align: right">
                        <table align="right">
                            <tr>
                                <td>
                                    <asp:ImageButton ID="cmdPrevious" ImageUrl="~/Images/xemtruoc.png" runat="server"
                                        OnClick="cmdPrevious_Click" />
                                </td>
                                <td>
                                    <cc1:Pager ID="Pager1" runat="server" PreviousClause=" " NextClause=" " LastClause=" "
                                        FirstClause=" " PageClause="Trang " PageSize="4" OnCommand="Pager1_Command" ForeColor="#006600"
                                        Font-Bold="True" />
                                </td>
                                <td>
                                    <asp:ImageButton ID="cmdNext" ImageUrl="~/Images/xemtiep.png" runat="server" OnClick="cmdNext_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
